Learning Predictive Analytics with R by Eric Mayor

Learning Predictive Analytics with R by Eric Mayor

Author:Eric Mayor
Language: eng
Format: epub, azw3, pdf
Publisher: Packt Publishing


We were right! The output is 1 again. So what does this value mean? A correlation can have any value comprised between -1 and 1. A value of -1 means a complete and negative correspondence of the changes in the values of the two attributes. A correlation of 1 means a complete and positive correspondence. A value of 0 means that the two attributes are independent of each other. The correlation allowed us to examine the strength of the correspondence of changes in height and weight in our example, that is, a perfect association between the two attributes.

It is worth mentioning that the Pearson's correlation only assesses linear relationships between the attributes. Let's have a look at what is meant here using the classic example of Anscombe's quartet. The dataset is part of the datasets package and, therefore, directly available to us:

data(anscombe)



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.